  <!-- Wrapper for the radial gradient background -->
  <div id="sidebar">
    <div id="sidebar-wrapper">
      <!-- Sidebar with logo and menu -->
      <h1 id="sidebar-title"><a href="#">Simpla Admin</a></h1>
      <!-- Logo (221px wide) -->
      <a href="javascript:void(0);"><img id="logo" src="<?php echo APPLICATION_PUBLIC; ?>/images/admin/logo.png" alt="Simpla Admin logo" /></a>
      <!-- Sidebar Profile links -->
      <?php 
      $auth = new Business_Manage_Auth();
      $userInfo = $auth->getUserInfoBySession();
      if ($userInfo['errorcode'] == 0) {
      	$result = $userInfo['result'];
      	$userName = isset($result['username']) ? $result['username'] : '';
      } else {
      	$userName = '';
      }
      ?>
      <div id="profile-links"> Hello, <a href="#" title="Edit your profile"><?php echo $userName;?></a>, you have <a href="#messages" rel="modal" title="0 Messages">0 Messages</a><br />
        <br />
        <a href="/" title="View the Site">View the Site</a> | <a href="/manage/logout" title="Sign Out">Sign Out</a> </div>
      <ul id="main-nav">
        <!-- Accordion Menu -->
        <li> <a href="javascript:void(0);" class="nav-top-item no-submenu">
          <!-- Add the class "no-submenu" to menu items with no sub menu -->
          Dashboard </a> </li>
        <li> <a href="javascript:void(0);" class="nav-top-item<?php if ($this->level1 == 'page') {echo ' current';}?>"> Pages </a>
          <ul>
            <li><a class="<?php if ($this->level2 == 'home') {echo 'current';}?>" href="<?php echo APPLICATION_URL; ?>/manage/homepage">Homepage</a></li>
            <li><a class="<?php if ($this->level2 == 'other') {echo 'current';}?>" href="<?php echo APPLICATION_URL; ?>/manage/other-pages">Other Pages</a></li>
          </ul>
        </li>
        <li> <a href="javascript:void(0);" class="nav-top-item<?php if ($this->level1 == 'article') {echo ' current';}?>">
          <!-- Add the class "current" to current menu item -->
          Articles </a>
          <ul>
            <li><a class="<?php if ($this->level2 == 'list') {echo 'current';}?>" href="<?php echo APPLICATION_URL; ?>/manage/article-list">Article List</a></li>
            <li><a class="<?php if ($this->level2 == 'edit') {echo 'current';}?>"href="<?php echo APPLICATION_URL; ?>/manage/edit-article/id/0">Edit Article</a></li>
          </ul>
        </li>
        <li> <a href="javascript:void(0);" class="nav-top-item<?php if ($this->level1 == 'author') {echo ' current';}?>"> Authors </a>
          <ul>
            <li><a class="<?php if ($this->level2 == 'list') {echo 'current';}?>" href="<?php echo APPLICATION_URL; ?>/manage/author-list">Author List</a></li>
            <li><a class="<?php if ($this->level2 == 'edit') {echo 'current';}?>" href="<?php echo APPLICATION_URL; ?>/manage/edit-author/id/0">Edit Author</a></li>
          </ul>
        </li>
        <li> <a href="javascript:void(0);" class="nav-top-item<?php if ($this->level1 == 'widgets') {echo ' current';}?>"> Widgets </a>
          <ul>
            <li><a class="<?php if ($this->level2 == 'mostviewed') {echo 'current';}?>" href="<?php echo APPLICATION_URL; ?>/manage/most-viewed">Most Viewed</a></li>
          </ul>
        </li>
        <!--  
        <li> <a href="javascript:void(0);" class="nav-top-item"> Settings </a>
          <ul>
            <li><a href="#">General</a></li>
            <li><a href="#">Design</a></li>
            <li><a href="#">Your Profile</a></li>
            <li><a href="#">Users and Permissions</a></li>
          </ul>
        </li>
        -->
      </ul>
      <!-- End #main-nav -->
    </div>
  </div>
  <!-- End #sidebar -->